﻿using System;
using Slippor.Utility.WebWorker;

namespace Slippor.Douban.Radio.Assist
{
    public class DoubanWebWorker : AbstractWebWorker
    {
        public const string DoubanLoginUrl = "http://www.douban.com/login";
        public static String Proxy;

        public DoubanWebWorker()
        {
            _userAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)";
            _loginUrl = DoubanLoginUrl;
            _timeOut = 30000;
            _retryTime = 10;
            if (!String.IsNullOrEmpty(Proxy))
            {
                _proxy = new System.Net.WebProxy(Proxy);
            }
        }

        protected override byte[] SetLoginInfo(string username, string password)
        {
            throw new NotImplementedException();
        }
    }
}